#include "sCRIFrame.h"
#include "sCRFrame.h"
#include "sGUI.h"

namespace sgui
{
namespace inst
{

void sComponentRectFrame::draw(engine::sDrawStack& drawStack) const
{
	const res::sTextureResourceFrame *frame = get<res::sComponentRectFrame>().getFrame(getFrameState()).get(getState());
	if (frame)
	{
		frame->draw(drawStack, getRect());
	}
}

sComponentRectFrame::sComponentRectFrame(const res::sComponentRectFrame& componentRect, sComponentInstance& instance, s32 id) :
	sComponentRectInstance(componentRect, instance, id),
    m_frameState(0)
{
	//
}

};
};